package cn.xorange.commons.security.entity;

import lombok.Data;

import java.util.HashSet;
import java.util.Set;

/**
 * @author : yangjian
 * date : 2024/8/8
 * description :
 */
@Data
public class SecurityRolePermission {

    private Integer roleId;
    private String permission;
    private Set<String> permissionKeys = new HashSet<>();

    public void setPermissionKey(String permission){
        permissionKeys.add(permission);
    }
}
